package com.jmb.api.vo.mock;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;
@Data
public class MockApiInfoVO {
    private Long serverId;
    private Integer port;
    private String remoteHost;
    private Integer remotePort;

    private Long apiId;
    private String description;
    private String url;
    private String method;
    private Integer responseCode;
    private String responseHeaders;
    private String responseBody;
    private Integer responseDelay;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private Integer responseHeadersEnableRely;
    private Integer responseBodyEnableRely;
    private Long creatorId;
    private String creatorName;
    private Integer responseBodyType;

    private List<MockHitPolicyVO> policies;
}
